package com.vivo.house.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MarketStageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MarketStageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalIsNull() {
            addCriterion("FK_Project_approval is null");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalIsNotNull() {
            addCriterion("FK_Project_approval is not null");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalEqualTo(String value) {
            addCriterion("FK_Project_approval =", value, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalNotEqualTo(String value) {
            addCriterion("FK_Project_approval <>", value, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalGreaterThan(String value) {
            addCriterion("FK_Project_approval >", value, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalGreaterThanOrEqualTo(String value) {
            addCriterion("FK_Project_approval >=", value, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalLessThan(String value) {
            addCriterion("FK_Project_approval <", value, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalLessThanOrEqualTo(String value) {
            addCriterion("FK_Project_approval <=", value, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalLike(String value) {
            addCriterion("FK_Project_approval like", value, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalNotLike(String value) {
            addCriterion("FK_Project_approval not like", value, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalIn(List<String> values) {
            addCriterion("FK_Project_approval in", values, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalNotIn(List<String> values) {
            addCriterion("FK_Project_approval not in", values, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalBetween(String value1, String value2) {
            addCriterion("FK_Project_approval between", value1, value2, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andFkProjectApprovalNotBetween(String value1, String value2) {
            addCriterion("FK_Project_approval not between", value1, value2, "fkProjectApproval");
            return (Criteria) this;
        }

        public Criteria andMarketDateIsNull() {
            addCriterion("Market_date is null");
            return (Criteria) this;
        }

        public Criteria andMarketDateIsNotNull() {
            addCriterion("Market_date is not null");
            return (Criteria) this;
        }

        public Criteria andMarketDateEqualTo(Date value) {
            addCriterion("Market_date =", value, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateNotEqualTo(Date value) {
            addCriterion("Market_date <>", value, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateGreaterThan(Date value) {
            addCriterion("Market_date >", value, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateGreaterThanOrEqualTo(Date value) {
            addCriterion("Market_date >=", value, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateLessThan(Date value) {
            addCriterion("Market_date <", value, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateLessThanOrEqualTo(Date value) {
            addCriterion("Market_date <=", value, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateIn(List<Date> values) {
            addCriterion("Market_date in", values, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateNotIn(List<Date> values) {
            addCriterion("Market_date not in", values, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateBetween(Date value1, Date value2) {
            addCriterion("Market_date between", value1, value2, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketDateNotBetween(Date value1, Date value2) {
            addCriterion("Market_date not between", value1, value2, "marketDate");
            return (Criteria) this;
        }

        public Criteria andMarketNameIsNull() {
            addCriterion("Market_Name is null");
            return (Criteria) this;
        }

        public Criteria andMarketNameIsNotNull() {
            addCriterion("Market_Name is not null");
            return (Criteria) this;
        }

        public Criteria andMarketNameEqualTo(String value) {
            addCriterion("Market_Name =", value, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameNotEqualTo(String value) {
            addCriterion("Market_Name <>", value, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameGreaterThan(String value) {
            addCriterion("Market_Name >", value, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameGreaterThanOrEqualTo(String value) {
            addCriterion("Market_Name >=", value, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameLessThan(String value) {
            addCriterion("Market_Name <", value, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameLessThanOrEqualTo(String value) {
            addCriterion("Market_Name <=", value, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameLike(String value) {
            addCriterion("Market_Name like", value, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameNotLike(String value) {
            addCriterion("Market_Name not like", value, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameIn(List<String> values) {
            addCriterion("Market_Name in", values, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameNotIn(List<String> values) {
            addCriterion("Market_Name not in", values, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameBetween(String value1, String value2) {
            addCriterion("Market_Name between", value1, value2, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketNameNotBetween(String value1, String value2) {
            addCriterion("Market_Name not between", value1, value2, "marketName");
            return (Criteria) this;
        }

        public Criteria andMarketUnitIsNull() {
            addCriterion("Market_unit is null");
            return (Criteria) this;
        }

        public Criteria andMarketUnitIsNotNull() {
            addCriterion("Market_unit is not null");
            return (Criteria) this;
        }

        public Criteria andMarketUnitEqualTo(String value) {
            addCriterion("Market_unit =", value, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitNotEqualTo(String value) {
            addCriterion("Market_unit <>", value, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitGreaterThan(String value) {
            addCriterion("Market_unit >", value, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitGreaterThanOrEqualTo(String value) {
            addCriterion("Market_unit >=", value, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitLessThan(String value) {
            addCriterion("Market_unit <", value, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitLessThanOrEqualTo(String value) {
            addCriterion("Market_unit <=", value, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitLike(String value) {
            addCriterion("Market_unit like", value, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitNotLike(String value) {
            addCriterion("Market_unit not like", value, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitIn(List<String> values) {
            addCriterion("Market_unit in", values, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitNotIn(List<String> values) {
            addCriterion("Market_unit not in", values, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitBetween(String value1, String value2) {
            addCriterion("Market_unit between", value1, value2, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketUnitNotBetween(String value1, String value2) {
            addCriterion("Market_unit not between", value1, value2, "marketUnit");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateIsNull() {
            addCriterion("Market_Associate is null");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateIsNotNull() {
            addCriterion("Market_Associate is not null");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateEqualTo(String value) {
            addCriterion("Market_Associate =", value, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateNotEqualTo(String value) {
            addCriterion("Market_Associate <>", value, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateGreaterThan(String value) {
            addCriterion("Market_Associate >", value, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateGreaterThanOrEqualTo(String value) {
            addCriterion("Market_Associate >=", value, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateLessThan(String value) {
            addCriterion("Market_Associate <", value, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateLessThanOrEqualTo(String value) {
            addCriterion("Market_Associate <=", value, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateLike(String value) {
            addCriterion("Market_Associate like", value, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateNotLike(String value) {
            addCriterion("Market_Associate not like", value, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateIn(List<String> values) {
            addCriterion("Market_Associate in", values, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateNotIn(List<String> values) {
            addCriterion("Market_Associate not in", values, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateBetween(String value1, String value2) {
            addCriterion("Market_Associate between", value1, value2, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketAssociateNotBetween(String value1, String value2) {
            addCriterion("Market_Associate not between", value1, value2, "marketAssociate");
            return (Criteria) this;
        }

        public Criteria andMarketScopeIsNull() {
            addCriterion("Market_scope is null");
            return (Criteria) this;
        }

        public Criteria andMarketScopeIsNotNull() {
            addCriterion("Market_scope is not null");
            return (Criteria) this;
        }

        public Criteria andMarketScopeEqualTo(String value) {
            addCriterion("Market_scope =", value, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeNotEqualTo(String value) {
            addCriterion("Market_scope <>", value, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeGreaterThan(String value) {
            addCriterion("Market_scope >", value, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeGreaterThanOrEqualTo(String value) {
            addCriterion("Market_scope >=", value, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeLessThan(String value) {
            addCriterion("Market_scope <", value, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeLessThanOrEqualTo(String value) {
            addCriterion("Market_scope <=", value, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeLike(String value) {
            addCriterion("Market_scope like", value, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeNotLike(String value) {
            addCriterion("Market_scope not like", value, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeIn(List<String> values) {
            addCriterion("Market_scope in", values, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeNotIn(List<String> values) {
            addCriterion("Market_scope not in", values, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeBetween(String value1, String value2) {
            addCriterion("Market_scope between", value1, value2, "marketScope");
            return (Criteria) this;
        }

        public Criteria andMarketScopeNotBetween(String value1, String value2) {
            addCriterion("Market_scope not between", value1, value2, "marketScope");
            return (Criteria) this;
        }

        public Criteria andSalesFormIsNull() {
            addCriterion("Sales_form is null");
            return (Criteria) this;
        }

        public Criteria andSalesFormIsNotNull() {
            addCriterion("Sales_form is not null");
            return (Criteria) this;
        }

        public Criteria andSalesFormEqualTo(String value) {
            addCriterion("Sales_form =", value, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormNotEqualTo(String value) {
            addCriterion("Sales_form <>", value, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormGreaterThan(String value) {
            addCriterion("Sales_form >", value, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormGreaterThanOrEqualTo(String value) {
            addCriterion("Sales_form >=", value, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormLessThan(String value) {
            addCriterion("Sales_form <", value, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormLessThanOrEqualTo(String value) {
            addCriterion("Sales_form <=", value, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormLike(String value) {
            addCriterion("Sales_form like", value, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormNotLike(String value) {
            addCriterion("Sales_form not like", value, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormIn(List<String> values) {
            addCriterion("Sales_form in", values, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormNotIn(List<String> values) {
            addCriterion("Sales_form not in", values, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormBetween(String value1, String value2) {
            addCriterion("Sales_form between", value1, value2, "salesForm");
            return (Criteria) this;
        }

        public Criteria andSalesFormNotBetween(String value1, String value2) {
            addCriterion("Sales_form not between", value1, value2, "salesForm");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("Create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("Create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("Create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("Create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("Create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("Create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("Create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("Create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("Create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("Create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("Create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("Create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateIsNull() {
            addCriterion("lastModify_date is null");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateIsNotNull() {
            addCriterion("lastModify_date is not null");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateEqualTo(Date value) {
            addCriterion("lastModify_date =", value, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateNotEqualTo(Date value) {
            addCriterion("lastModify_date <>", value, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateGreaterThan(Date value) {
            addCriterion("lastModify_date >", value, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateGreaterThanOrEqualTo(Date value) {
            addCriterion("lastModify_date >=", value, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateLessThan(Date value) {
            addCriterion("lastModify_date <", value, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateLessThanOrEqualTo(Date value) {
            addCriterion("lastModify_date <=", value, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateIn(List<Date> values) {
            addCriterion("lastModify_date in", values, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateNotIn(List<Date> values) {
            addCriterion("lastModify_date not in", values, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateBetween(Date value1, Date value2) {
            addCriterion("lastModify_date between", value1, value2, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andLastmodifyDateNotBetween(Date value1, Date value2) {
            addCriterion("lastModify_date not between", value1, value2, "lastmodifyDate");
            return (Criteria) this;
        }

        public Criteria andAddUserIsNull() {
            addCriterion("Add_user is null");
            return (Criteria) this;
        }

        public Criteria andAddUserIsNotNull() {
            addCriterion("Add_user is not null");
            return (Criteria) this;
        }

        public Criteria andAddUserEqualTo(String value) {
            addCriterion("Add_user =", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserNotEqualTo(String value) {
            addCriterion("Add_user <>", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserGreaterThan(String value) {
            addCriterion("Add_user >", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserGreaterThanOrEqualTo(String value) {
            addCriterion("Add_user >=", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserLessThan(String value) {
            addCriterion("Add_user <", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserLessThanOrEqualTo(String value) {
            addCriterion("Add_user <=", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserLike(String value) {
            addCriterion("Add_user like", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserNotLike(String value) {
            addCriterion("Add_user not like", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserIn(List<String> values) {
            addCriterion("Add_user in", values, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserNotIn(List<String> values) {
            addCriterion("Add_user not in", values, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserBetween(String value1, String value2) {
            addCriterion("Add_user between", value1, value2, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserNotBetween(String value1, String value2) {
            addCriterion("Add_user not between", value1, value2, "addUser");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}